package com.envocabulary.Model;

import java.io.Serializable;

import android.database.Cursor;

public class Word implements Serializable{
	public int idWord;
	public String sWord;
	public String sPhonetic;
	public String sMeanings;
	public String sSummary;

	public Word(Cursor cursor) {
		super();
		this.idWord = cursor.getInt(cursor.getColumnIndex("_id"));
		this.sWord = cursor.getString(cursor.getColumnIndex("sword"));
		this.sPhonetic = cursor.getString(cursor.getColumnIndex("sphonetic"));
		this.sMeanings = cursor.getString(cursor.getColumnIndex("smeanings"));
		this.sSummary = cursor.getString(cursor.getColumnIndex("ssummary"));
	}

	public Word(int id, String w, String phonetic, String meanings,
			String summary) {
		this.idWord = id;
		this.sWord = w;
		this.sPhonetic = phonetic;
		this.sMeanings = meanings;
		this.sSummary = summary;
	}

	
}
